package pm.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 论文表
 * @author Administrator
 *
 */
public class Paper {
	//论文id
	private Integer id;
	private String name;//论文题目
	private String path;//保存在磁盘的路径
	private Date date;//出版日期
	//与作者是多对多关系
	private Set<Author> authors = new HashSet<Author>();
	//与杂志是多对一关系
	private Journal journal;
	
	public String getName() {
		return name;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Set<Author> getAuthors() {
		return authors;
	}
	public void setAuthors(Set<Author> authors) {
		this.authors = authors;
	}
	public Journal getJournal() {
		return journal;
	}
	public void setJournal(Journal journal) {
		this.journal = journal;
	}
}
